<template>
  <view :style="themeColor">
    <view class="page">
      <view
        class="flex flex-direction align-stretch justify-between benben-position-layout flex templtClassification_flex_0"
        :style="{height:(93+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub templtClassification_fd0_0'>
          <text class='fu-iconfont2  templtClassification_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">&#xE794;</text>
          <view class='flex flex-wrap align-center flex-sub templtClassification_fd0_0_c1'>
            <text class='fu-iconfont2  templtClassification_fd0_0_c1_c0'>&#xe738;</text>
            <input class='flex-sub templtClassification_fd0_0_c1_c1' type="text" :placeholder="$t('请输入景点名称')"
              confirm-type="done" :maxlength="-1" placeholder-style="color:rgba(153, 153, 153, 1);font-size:24rpx"
              @confirm="getClassificationFunc()" v-model="keywords" />
          </view>
        </view>

      </view>
      <view :style="{height: (93+StatusBarRpx)+'rpx'}"></view>
      <benben-goods-classify class='flex  templtClassification_flex_classify_1' :top='88' :is-three-level='false'
        :handle-id.sync='checkid' :lists='classificationList' @handle-item="ShowFunc">
      </benben-goods-classify>
      <benben-popup v-model="popupShow1703511072533" :mask="true" :mask-close-able="true" mode='center'>
        <!---富文本弹窗flex布局开始-->
        <view class="flex flex-direction flex-wrap align-center benben-flex-layout">
          <view class='flex flex-direction align-stretch templtClassification_fd2_0'>

            <scroll-view class='templtClassification_fd2_0_c0' :scroll-y='true'>
              <view class='flex flex-direction align-stretch benben-scroll flex'>
                <view v-html="jieshao">

                </view>
              </view>
            </scroll-view>

          </view>
          <image class='templtClassification_fd2_1' mode="aspectFit" :src='STATIC_URL+"88.png"'
            @tap.stop="popupShow1703511072533=false"></image>
        </view>

        <!---富文本弹窗flex布局结束-->

      </benben-popup>


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "popupShow1703511072533": false,
        "keywords": "",
        "classificationList": [],
        "checkid": "",
        'jieshao':''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.checkid=options.id
      this.getClassificationFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取分类
      async getClassificationFunc() {
        //请求方法
        //数据验证

        let dataclassificationList = await this.$api.post(global.apiUrls.post6589655ac1a23, {
          keywords: this.keywords
        });

        if (dataclassificationList.data.code != 1) {
          this.$message.info(dataclassificationList.data.msg);
          return
        }
        let infoclassificationList = dataclassificationList.data;
        this.classificationList = infoclassificationList.data

      },
      //显示弹窗
      ShowFunc(e) {
        this.jieshao=e.jieshao
        this.popupShow1703511072533 = true;
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .templtClassification_flex_0 {
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 93rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: #eee;
  }

  .templtClassification_fd0_0_c1_c1 {
    font-size: 24rpx;
    font-weight: 400;
    color: #333;
    margin: 0rpx 0rpx 0rpx 14rpx;
  }

  .templtClassification_fd0_0_c1_c0 {
    font-size: 24rpx;
    color: rgba(153, 153, 153, 1);
  }

  .templtClassification_fd0_0_c1 {
    background: rgba(255, 255, 255, 1);
    height: 64rpx;
    background-size: 100% auto !important;
    border-radius: 34rpx 34rpx 34rpx 34rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: #333;
  }

  .templtClassification_fd0_0_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
    margin: 0rpx 34rpx 0rpx 0rpx;
  }

  .templtClassification_fd0_0 {
    padding: 0rpx 24rpx 0rpx 35rpx;
  }

  ::v-deep .templtClassification_flex_classify_1 {
    --classify-radius: 4rpx;
    --active-tag-color: rgba(145, 47, 34, 1);
  }

  .templtClassification_fd2_1 {
    width: 56rpx;
    height: 56rpx;
    border-radius: 28rpx 28rpx 28rpx 28rpx;
  }

  .templtClassification_fd2_0_c0_c0_c0 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 48rpx;
  }

  .templtClassification_fd2_0_c0 {
    touch-action: none;
    height: 472rpx;
    width: 100%;
  }

  .templtClassification_fd2_0 {
    background: var(--benbenbgColor1);
    width: 560rpx;
    border-radius: 24rpx 24rpx 24rpx 24rpx;
    padding: 45rpx 32rpx 45rpx 32rpx;
    margin: 0rpx 0rpx 40rpx 0rpx;
    background-size: 100% auto !important;
  }
</style>
